import React from 'react';
import ReactDOM from 'react-dom';
import 'babel-polyfill'; // 兼容IE
import {PersistGate} from 'redux-persist/es/integration/react';
import {persistStore} from 'redux-persist';
import {RouterConfig} from '@/router';
import {Provider} from 'react-redux';
// import 'lib-flexible';
import 'amfe-flexible';
import store from '@/store';
// import './index.css';
import '@/assets/font/iconfont.css';
import 'normalize.css';
import registerServiceWorker from './registerServiceWorker';

class App extends React.Component {
    render() {
        return (
            <Provider store={store}>
                <PersistGate persistor={persistStore(store)}>
                    {RouterConfig(store)}
                </PersistGate>
            </Provider>
        );
    }
}

ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
